FROM ubuntu:14.04

MAINTAINER cuberl

RUN usermod -u 1000 www-data
ADD sources.list /tmp
RUN cat /tmp/sources.list > /etc/apt/sources.list
RUN echo "nameserver 223.5.5.5" > /etc/resolv.conf;apt-get update;apt-get -y --no-install-recommends install apache2 php5 php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl unzip
ADD thinkphp.zip /tmp
ADD dockerd /etc/rc.d/init.d/
RUN chmod 777 /etc/rc.d/init.d/dockerd

CMD /etc/rc.d/init.d/dockerd

